package com.tsn.service.impl;

import com.tsn.common.Result;
import com.tsn.entity.Site;
import com.tsn.mapper.SiteMapper;
import com.tsn.service.SiteService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 景点 服务实现类
 * </p>
 *
 * @author tsn
 * @since 2021-08-13
 */
@Service
public class SiteServiceImpl extends ServiceImpl<SiteMapper, Site> implements SiteService {
    @Autowired
    private SiteMapper siteMapper;
    @Override
    public Result listAttentionSites(Integer userId) {
        return Result.success("查询成功！",siteMapper.selectAttentionSites(userId));
    }
}
